import cv2

cameraId = 1
cap = cv2.VideoCapture(cameraId)
while True:
    ret, img = cap.read()
    cv2.imshow("Openpose Python - Press Q to Exit", img)
    if cv2.waitKey(1) == ord('q'):
        break
cap.release()
cv2.destroyAllWindows()
